use std::io;
use anyhow::Result;
use console::style;

mod download;
mod vc;
mod detection;
mod execute;
mod framework;

#[tokio::main]
async fn main() -> Result<()> {

    println!("{} 启动环境检测中...", style("✅").green());
    detection::net_detection().await?;
    detection::vc_detection().await?;
    println!("{} 程序执行完成，按回车键退出...", style("✅").green());
    let mut input = String::new();
    io::stdin().read_line(&mut input)?;

    Ok(())
}
